package com.lvyh.lightframe.healthcheck.common;

public enum ErrorCode {
    SUCCESS(0, "success"),
    FAILED(1, "failed"),
    PARAM_ERROR(2, "param error");

    private final int status;
    private final String message;

    ErrorCode(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }
}
